package entity.weapons;

import java.awt.Graphics2D;
import java.util.LinkedList;

public abstract class Inventory<T extends Item>
{
	//create a linkedlist to store all the items
	private LinkedList<T> items;
	
	public Inventory()
	{
		items = new LinkedList<T>();
	}
	public Inventory( T i )
	{
		items = new LinkedList<T>();
		items.add( i );
	}
	
	//return the linkedlist of items to any subclasses (diff types of inventories)
	protected LinkedList<T> getItems()
	{
		return items;
	}
	
	public void add(T i)
	{
		items.add(i);
	}

	public abstract void render( Graphics2D g );
}
